import request from '@/utils/request'

//错题集课程目录
export function getMistakeListApi(params) {
  return request({
    url: `/exam/stu/mistake/list`,
    method: 'get',
    params:params
  })
}
//错题集专用下拉框知识点
export function getMistakeIndexsApi(courseId) {
  return request({
    url: `/exam/stu/mistake/index/${courseId}`,
    method: 'get',
  })
}

//错题集错题列表
export function getMistakeTopicListApi(courseId,params) {
  return request({
    url: `/exam/stu/mistake/topic/list/${courseId}`,
    method: 'get',
    params:params
  })
}

//错题集错题列表
export function removeMistakeTopicApi(courseId,data) {
  return request({
    url: `/exam/stu/mistake/removeMistake/${courseId}`,
    method: 'delete',
    data:data
  })
}

//错题记录
export function getMistakeTopicRecordApi(courseId,topicId) {
  return request({
    url: `/exam/stu/mistake/topic/${courseId}/${topicId}`,
    method: 'get'
  })
}
